package com.tiancheng.trade.settlement.vo.settlement.admin.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tiancheng.trade.settlement.model.settlement.SettleDetail;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
public class SettleDetailResVo extends SettleDetail implements Serializable {
    /**
     * 应收金额
     */
    private Integer subOrderAmount;
    /**
     * 支付金额
     */
    private Integer payAmount;
    /**
     * 退款金额
     */
    private Integer refundAmount;
    /**
     * 是否有优惠
     */
    private Boolean isCoupon;
    /**
     * 优惠总金额
     */
    private Integer discount;
    /**
     * 子订单状态
     */
    private String subOrderStatus;
    /**
     * 业务侧子订单状态
     */
    private String bizStatus;
    /**
     * 子订单退款状态
     */
    private String refundStatus;
    /**
     * 核销时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime verificationTime;
    /**
     * IN：核销中，SC成功，Fl：核销失败
     */
    private String verificationStatus;

    /**
     * 下单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime orderCreateDt;

    /**
     * 中台商户编码
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    private String merchantCode;

    /**
     * 商户名称（中台）
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    private String merchantName;
}
